package model

type SystemPageFunc struct {
	Model
	PageId uint `json:"page_id"`
	FuncId uint `json:"func_id"`
}

func (table *SystemPageFunc) TableName() string {
	return "t_system_page_func"
}

type SystemPageFuncTo struct {
	Model
	PageId     uint         `json:"page_id"`
	FuncId     uint         `json:"func_id"`
	SystemFunc SystemFuncTo `json:"system_func" gorm:"foreignKey:Id;references:FuncId"`
}

func (table *SystemPageFuncTo) TableName() string {
	return "t_system_page_func"
}
